$(window).ready(function(){
	$('#aDiv1').click(function(){
		$('#div1').attr('title',i18n.message.msg).dialog($.extend({},dialogConfig,{width:"710",height:"300"}));
	});
				
	$('#aDiv2').click(function(){
		$('#div2').attr('title',i18n.message.msg).dialog($.extend({},dialogConfig,{width:"710",height:"300"}));
	});
				
	$('#newBtnError').click(function(){
		var dwrOption = {
				async:false,
				errorHandler:function(message){
					alert("用户自定义错误处理方法");
				}
			}
		CommonService.loadAll('com.wef.demo.entity.Test',$.DwrUtils.proDwrOption(dwrOption));
	});
				
	$('#newBtnException').click(function(){
		var dwrOption = {
				async:false,
				exceptionHandler:function(message){
					alert("用户自定义异常处理方法");
				}
			}
		CommonService.loadAll('com.wef.demo.entity.Test',$.DwrUtils.proDwrOption(dwrOption));
	});
});